#include<stdio.h>

void func();

int a, b = 520;

void func()
{
	int b;

	a = 880;
	b = 120;

	printf("In func, a = %d, b = %d\n ",a, b);

}

int main()
{
	printf("In main, a = %d, b = %d\n",a ,b);//a未定义初始化为0;b为全局变量值520
	func();//在函数func()内,a为局部变量880,b为局部变量120
	printf("In main, a = %d, b = %d\n",a ,b);//a由于未定义,则值为局部变量定义的值;b依然为全局变量的值

	return 0;
}
